<?php
if($act=="edit")
{
    $sql_select = "SELECT * FROM tblweather WHERE iId = $id";
    $weather    = $dbsql->query_fetch($sql_select);
}else
{
    $weather    = array();
    $weather['iStatus']= 1;
}

?>
